package com.ponhu.ea2.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.converters.inputstream.InputStreamImageConverter;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.InputStream;

@Data
@NoArgsConstructor
@ContentRowHeight(118)
public class PickInventoryImgExportVo extends PickInventoryExportVo {

    @ColumnWidth(25)
    @ExcelProperty(value = "货品主图", converter = InputStreamImageConverter.class)
    private InputStream inputStream;

    @ExcelIgnore
    @ExcelProperty(value = "货品主图")
    private String mainImage;

    public PickInventoryImgExportVo(String inventoryCode, String errorMsg) {
        super(inventoryCode, errorMsg);
    }

}
